import * as bcrypt from 'bcryptjs'

// $2a$10$0n6wO4WynOmCsV/AP06nxO9/urPVtUYG29Vh4GNgIBFlLz5zp3GnC
const res1 = bcrypt.hashSync('123456')

// 验证加密后的数据
const c = bcrypt.compareSync('123456', res1)

console.log(res1)
console.log('是否相等', c)
